package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.DustMonitoringDao;
import com.site.wisdom_construction.entity.iotModule.DustMonitoring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/7/14
 * @Description
 */
@Service
public class DustMonitoringService implements DustMonitoringDao {
    @Autowired
    private DustMonitoringDao dustMonitoringDao;

    @Override
    public int insertDustMonitoring(Map map) {
        return dustMonitoringDao.insertDustMonitoring(map);
    }

    @Override
    public int deleteDustMonitoring(Map map) {
        return dustMonitoringDao.deleteDustMonitoring(map);
    }

    @Override
    public List<DustMonitoring> findDustMonitoringByPage(Map map) {
        return dustMonitoringDao.findDustMonitoringByPage(map);
    }

    @Override
    public DustMonitoring findDustMonitoringByRecently(Map map) {
        return dustMonitoringDao.findDustMonitoringByRecently(map);
    }

    @Override
    public long Total(Map map) {
        return dustMonitoringDao.Total(map);
    }

    @Override
    public List<DustMonitoring> countDustMonitoringByMonth(Map map) {
        return dustMonitoringDao.countDustMonitoringByMonth(map);
    }
}
